- if favorite = clipping.has_been_favorited_by(current_user, request.remote_ip)
  .favorite
    = link_to favorite_path('clipping', clipping.id, favorite.id), :method => :delete, :class => 'act-via-ajax', :id => 'favorite-clipping-'+clipping.id.to_s if logged_in? do
      %span.badge.badge-info
        =fa_icon("heart")
        =clipping.favorited_count.to_s
      %span.label.label-info
        =:in_your_favorites.l
- else
  .favorite
    = link_to favorites_path('clipping', clipping.id), :method => :post, :class => 'act-via-ajax', :id => 'favorite-clipping-'+clipping.id.to_s do
      %span.badge
        =fa_icon("heart")
        =clipping.favorited_count.to_s
